<!-- Header Area -->
<nav>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a ui-sref="audit" ui-sref-active="active">登录</a>
                </li>
                <li>
                    <a ui-sref="audit.register" ui-sref-active="active">注册</a>
                </li>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>
</nav>
<ui-view>
    <br>
    <br>
    <br>
    <br>
    <br>
    <div class="container" ng-controller="loginCtrl">
        <form class="form-horizontal col-md-6 col-md-offset-3" id="loginForm">
            <div class="well center-block">
                <div class="panel panel-success">
                    <div class="panel-heading" align="center">
                        <h3>O2O-M端登录</h3>
                    </div>
                    <div class="panel-body">
                        <div class="form-group  has-feedback">
                            <label class="col-md-3 control-label">用 &nbsp户 &nbsp名</label>
                            <div class="col-md-8 " >
                                <input type="text" class="form-control" ng-model="merchant.username" placeholder="用户名" required>
                            </div>
                        </div>
                        <div class="form-group has-feedback">
                            <label class="col-md-3 control-label">密&nbsp &nbsp &nbsp  &nbsp码 </label>
                            <div class="col-md-8">
                                <input type="password" class="form-control" ng-model="merchant.password" placeholder="密码" required >
                            </div>
                        </div>
                        <div class="form-group text-center" style="color:red" >
                            {{error}}
                        </div>
                        <div class="form-group">
                            <div class="col-md-4"></div>
                            <button type="submit" ng-click="login()" class="btn btn-default">登录</button>
                            <button type="button" ng-click="register()" class="btn btn-default  col-md-offset-1">注册</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</ui-view>